package com.itHsuSE.demo8;

import javax.swing.*;
import java.awt.*;

/**
 * @author Hsu琛君珩
 * @ClassName:Test6
 * @date 2023-12-19
 * @apiNote
 * @Version: v1.0
 */

public class Test6 {
    public static void main(String[] args) {
        JFrame jf = new JFrame("Frame");
        jf.setLayout((new FlowLayout()));
        jf.setBounds(400, 300, 300, 400);

        JComboBox box=new JComboBox();
        box.addItem(("请选择你的学历:"));
        box.addItem("高中");
        box.addItem("大学");
        box.addItem("研究生");
        jf.add(box);

        jf.setVisible(true);
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
